package com.cloud.code.反射;

@MyLog
public class Dog {

    public String name;

    private int age;

    protected String sex;

    public Dog() {

    }

    public Dog(String name, int age, String sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    private int getAge() {
        System.out.println("getAge 调用");
        return this.age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        System.out.println("getName 调用");
        return this.name;
    }

}
